CC = gcc
CFLAGS = -pipe -W -Wall -Wpointer-arith -Wno-unused-parameter -Wunused-function -Wunused-variable -Wunused-value -Werror -g 
LINK = $(CC) -lpthread

CORE_DEPS = 

OBJECTS = objs/main.o

sgctest : $(OBJECTS)
	  $(LINK) -o sgctest $(OBJECTS)

objs/main.o : $(CORE_DEPS) \
		 main.c
		 $(CC) -c $(CFLAGS) \
		 -o objs/main.o \
		 main.c

clean : 
		 rm sgctest $(OBJECTS) 
